import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ZhongJinTao
 * Date: 2024-03-03
 * Time: 14:12
 */
public class IODemo3 {
    public static void main(String[] args) {
        File f = new File("./test.txt");
        boolean ret1 = f.exists();//判断 File 对象描述的⽂件是否真实存在
        boolean ret2 = f.isDirectory();//判断 File 对象代表的⽂件是否是⼀个⽬录
        boolean ret3 = f.isFile();//判断 File 对象代表的⽂件是否是⼀个普通⽂件
        System.out.println(ret1);
        System.out.println(ret2);
        System.out.println(ret3);
    }
}
